package cn.stylefeng.guns.modular.gridsystem.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 采集端样本管理
 * @author ssy
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_collection_sample_manage")
public class BizCollectionSampleManage extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("gateway_id")
    private Integer gatewayId;

    /**
     * 网关编号
     */
    @TableField("gateway_code")
    private String gatewayCode;

    /**
     * 网关通道
     */
    @TableField("gateway_channel")
    private String gatewayChannel;

    /**
     * 时间
     */
    @TableField("create_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;

    /**
     * 期望ID编号
     */
    @TableField("expect_access_token")
    private String expectAccessToken;

    /**
     * 期望分组号
     */
    @TableField("expect_group_id")
    private String expectGroupId;

    /**
     * 文件
     */
    @TableField("file_id")
    private Long fileId;

}
